<?php
/**
 * identifycode controller
 * @package common_controller_base
 */
load_lib('/app/controller');
/**
 * identifycode controller
 * @author pandajingjing
 * @package common_controller_base
 */
class base_identifycodecontroller extends app_controller{

	/**
	 * 入口方法
	 */
	function doRequest(){
		load_lib('/util/image');
		load_lib('/util/string');
		$blobImage=util_image::createIdentifyCodeImage(200,50,util_string::getRand(5,2));
		$this->setData('blobImage',$blobImage);
		$this->addHeader('Content-type: image/gif');
		return '/base/identifycode';
	}
}